const { execSync } = require('child_process');

try{
  const result = execSync('./throw-exception');
}
catch(err){
  console.log('has error')
  console.log(err.stderr.toString());
}
